.TH std::scoped_allocator_adaptor::allocate 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::scoped_allocator_adaptor::allocate \- std::scoped_allocator_adaptor::allocate

.SH Synopsis
   Defined in header <scoped_allocator>
   pointer allocate( size_type n );                         \fI(since C++11)\fP
                                                            \fI(until C++20)\fP
   [[nodiscard]] pointer allocate( size_type n );           \fI(since C++20)\fP
   pointer allocate( size_type n,                   \fB(1)\fP                   \fI(since C++11)\fP
   const_void_pointer hint );                           \fB(2)\fP               \fI(until C++20)\fP
   [[nodiscard]] pointer allocate( size_type n,                           \fI(since C++20)\fP
   const_void_pointer hint );

   Uses the outer allocator to allocate uninitialized storage.

   1) Calls std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n).
   2) Additionally provides memory locality hint, by calling
   std::allocator_traits<OuterAlloc>::allocate(outer_allocator(), n, hint).

.SH Parameters

   n    - the number of objects to allocate storage for
   hint - pointer to a nearby memory location

.SH Return value

   The pointer to the allocated storage.

.SH See also

   allocate allocates uninitialized storage
            \fI(public member function of std::allocator<T>)\fP
   allocate allocates uninitialized storage using the allocator
   \fB[static]\fP \fI(public static member function of std::allocator_traits<Alloc>)\fP
